package com.xjscrm.common.enums;

public enum TencentCosRegionEnum {
    BEIJING("ap-beijing", "北京", "<BucketName>.cos.ap-beijing.myqcloud.com"),
    SHANGHAI("ap-shanghai", "上海", "<BucketName>.cos.ap-shanghai.myqcloud.com"),
    GUANGZHOU("ap-guangzhou", "广州", "<BucketName>.cos.ap-guangzhou.myqcloud.com"),
    CHENGDU("ap-chengdu", "成都", "<BucketName>.cos.ap-chengdu.myqcloud.com"),
    CHONGQING("ap-chongqing", "重庆", "<BucketName>.cos.ap-chongqing.myqcloud.com"),
    NANJING("ap-nanjing", "南京", "<BucketName>.cos.ap-nanjing.myqcloud.com"),
    HONGKONG("ap-hongkong", "香港", "<BucketName>.cos.ap-hongkong.myqcloud.com");

    private String value;
    private String desc;
    private String domain;

    private TencentCosRegionEnum(String value, String desc, String domain) {
        this.value = value;
        this.desc = desc;
        this.domain = domain;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }

    public String getDomain() {
        return this.domain;
    }

    public static TencentCosRegionEnum getValue(String value) {
        if (value == null) {
            return null;
        } else {
            TencentCosRegionEnum[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                TencentCosRegionEnum type = var1[var3];
                if (type.getValue().equals(value)) {
                    return type;
                }
            }

            return null;
        }
    }

    public static String getDesc(String value) {
        return getValue(value) == null ? null : getValue(value).getDesc();
    }
}
